/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package olympicgameslogic;

import java.io.Serializable;
import olympicgameslogic.ClassificationType.MEASUREUNIT;

/**
 *
 * @author Nuno
 */
public class ResultRank extends Result implements Serializable{
   
   private int rank;

   public ResultRank() {
   }

   public ResultRank(MEASUREUNIT unit) {
      super(unit);
   }

   public ResultRank(int rank) {
      this.rank = rank;
   }

   public ResultRank(int rank, MEASUREUNIT unit) {
      super(unit);
      this.rank = rank;
   }

   /**
    * @return the rank
    */
   public int getRank() {
      return rank;
   }

   /**
    * @param rank the rank to set
    */
   public void setRank(int rank) {
      this.rank = rank;
   }

   @Override
   public boolean isEqual(Object obj) {
return (rank == ((ResultRank)obj).getRank());
   }
   
   
   
}
